package com.example;

import com.example.entity.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Application_05 {
    public static void main(String[] args) {
        // 创建容器
        ApplicationContext context = new ClassPathXmlApplicationContext("application_set.xml");
        // 获取对象
        Student student= (Student) context.getBean("studentEntity");
        System.out.println(student);
    }
}
